//提示用户输入一个double类型的变量并读取用户输入的值，取其绝对值后再开平方并输出结果。
import java.util.Scanner;
public class SR3_38
{
  public static void main(String []args)
  {
  double a;
  double b,c;
  Scanner scan = new Scanner(System.in);

  System.out.println("enter a double value:");
  a = scan.nextDouble();

  b = Math.abs(a);
  c = Math.pow(b,0.5);
  System.out.println("The result is:"+c);
  }
} 

